/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package com.yonyou.portcity.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.yonyou.portcity.entity.UserEntity;
import com.yonyou.portcity.utils.WebResult;

/**
 * 用户
 *
 * @author Mark sunlightcs@gmail.com
 */
public interface UserService {

	UserEntity queryByuserName(String username);

	WebResult save(UserEntity userEntity);
	/**
	 * 用户登录
	 * @param form    登录表单
	 * @return        返回用户ID
	 */
	long login(UserEntity form);
	/**
	 * 校验商户是否存在
	 */
	WebResult checkUser(String name);

	WebResult  getRegisterUserInfo();
}
